/*
 * Viewport.cpp
 *
 *  Created on: Sep 30, 2009
 *      Author: tiago.zaccaro
 */

#include "Graphics/Viewport.h"

namespace AcquaEngine {

namespace Graphics {

Viewport::Viewport(Ogre::RenderWindow * renderwindow, Ogre::Viewport * viewport) :
	mRenderWindow(renderwindow)
	,mViewport(viewport)
{
}

Viewport::~Viewport()
{
	mRenderWindow->removeViewport( mViewport->getZOrder() );
}

Ogre::Viewport * Viewport::getViewport()
{
	return mViewport;
}

Ogre::RenderWindow * Viewport::getRenderWindow()
{
	return mRenderWindow;
}

}

}
